import { IRoom } from "./Api"
import { IClientInput, IState } from "./State"

export interface IMsgHallSync {
    rooms: IRoom[]
}

export interface IMsgRoomSync {
    room: IRoom
}

export interface IMsgGameStart {
    state: IState
}

export interface IMsgClientSync {
    frameId: number,
    input: IClientInput,
}

export interface IMsgServerSync {
    lastFrameId: number,
    inputs: IClientInput[],
    agentId?: number,
    state?: IState,
}

export interface IMsgStateSync {
    state: IState,
    agentId: number,
}